﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="news_types.aspx.cs" Inherits="WebApplication.admin.NewsType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title></title>
</head>
<body>
<table border="0" cellpadding="1" cellspacing="1" class="grid">
    <thead>
        <tr>
            <th width="60" style="text-align: center">序号</th>
            <th width="260">名称</th>
            <th width="100">排序</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        <asp:repeater runat="server" id="t_list">
            <itemtemplate>
        <tr>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "Id") %></td>
            <td><%# DataBinder.Eval(Container.DataItem,"Name") %></td>
            <td><%# DataBinder.Eval(Container.DataItem, "Sort") %></td>
            <td><a href="?do=edit&id=<%# DataBinder.Eval(Container.DataItem, "Id") %>">修改</a> <a href="?do=delete&amp;id=<%# DataBinder.Eval(Container.DataItem,"Id") %>" onclick="return confirm('确定删除?')">删除</a></td>
        </tr>
            </itemtemplate>
        </asp:repeater>
    </tbody>
</table>
<div style="color:red" runat="server" id="msg"></div>
<form action="?do=save&id=<%= id %>" method="post" enctype="multipart/form-data" class="root form" autocomplete="off">
    <h3><asp:literal text="添加" runat="server" id="lit_action" />新闻类别</h3>
    <div class="item"><label>类别名称：</label><input type="text" class="text" id="name" runat="server" /></div>
    <div class="item"><label>排序：</label><input type="text" class="text" id="sort" runat="server" /></div>
    <div class="item"><label>&nbsp;</label><input type="submit" value="添加" id="btn_save" runat="server" /> <input type="button" onclick="location.replace('?')" value="取消" /></div>
</form>
</body>
</html>
